package com.cly.entity;

import com.cly.base.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serial;

/**
 * 题目表
 *
 * @author by 春风能解释
 * <p>
 * 2024-06-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@Accessors(chain = true)
@Schema(name = "题目表")
public class Problem extends BaseEntity {

    /**
     * 序列化版本号
     */
    @Serial
    private static final long serialVersionUID = -9186683539792444911L;
    /**
     * 题目内容
     */
    @Schema(description = "题目内容")
    private String content;
    /**
     * 分数
     */
    @Schema(description = "分数")
    private Integer score;
    /**
     * 题目类型(0选择题,1多选题,2判断题,3主观题)
     */
    @Schema(description = "题目类型(0选择题,1多选题,2判断题,3主观题)")
    private Integer type;
    /**
     * 答案
     */
    @Schema(description = "答案")
    private String answer;
    /**
     * 解析
     */
    @Schema(description = "解析")
    private String parse;
    /**
     * 科目ID
     */
    @Schema(description = "科目ID")
    private Long subjectId;

    /**
     * 题库ID
     */
    @Schema(description = "题库ID")
    private Long bankId;
}
